/*! For license information please see awb.js.LICENSE.txt */ !function(){"use strict";function t(t,e,a){var i,n=a||{},o=n.noTrailing,r=void 0!==o&&o,s=n.noLeading,l=void 0!==s&&s,d=n.debounceMode,c=void 0===d?void 0:d,w=!1,h=0;function g(){i&&clearTimeout(i)}function b(){for(var a=arguments.length,n=new Array(a),o=0;ot?l?(h=Date.now(),r||(i=setTimeout(c?u:b,t))):b():!0!==r&&(i=setTimeout(c?u:b,void 0===c?t-d:t)))}return b.cancel=function(t){var e=(t||{}).upcomingOnly,a=void 0!==e&&e;g(),w=!a},b}const{AWBData:e={}}=window,a=window.jQuery,i=a(window),n=a(document),o=/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/g.test(navigator.userAgent||navigator.vendor||window.opera),r=!!document.documentMode,s=!r&&!!window.StyleMedia,l="undefined"!=typeof InstallTrigger,d=/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&safari.pushNotification).toString(),c=!!window.chrome&&!!window.chrome.webstore,w=!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,h=a("#twentytwenty-style-css, #twenty-twenty-style-css, #twenty-twenty-one-style-css").length;let g=!1,b=!1;function u(t,e){const a=t[0].getBoundingClientRect();let i=1;if(a.right<=0||a.left>=window.innerWidth)i=0;else if(a.bottom<0&&a.top<=window.innerHeight)i=0;else{const t=Math.max(0,a.height+a.top),e=Math.max(0,a.height-(a.top+a.height-window.innerHeight)),n=Math.max(0,-a.top),o=Math.max(0,a.top+a.height-window.innerHeight);a.height{if(!g)switch(t){case"everywhere":g=!0;break;case"mobile":g=o;break;case"ie":g=r;break;case"edge":g=s;break;case"firefox":g=l;break;case"safari":g=d;break;case"chrome":g=c;break;case"opera":g=w}})),e.settings&&e.settings.disable_video&&e.settings.disable_video.length&&e.settings.disable_video.forEach((t=>{if(!b)switch(t){case"everywhere":b=!0;break;case"mobile":b=o;break;case"ie":b=r;break;case"edge":b=s;break;case"firefox":b=l;break;case"safari":b=d;break;case"chrome":b=c;break;case"opera":b=w}}));let m,p=!1,f=1;const v=t(200,((t,e,i)=>{!function(t,e,i){let n,o,r;p.each((function(){const s=a(this);n=s.data("awb-mouse-data"),"object"==typeof n&&(n.is_in_viewport||i&&f)&&(i?(o=-n.size*t,r=-n.size*e):(o=(n.rect.width-(t-n.rect.left))/n.rect.width,r=(n.rect.height-(e-n.rect.top))/n.rect.height,(o>1||o<0||r>1||r<0)&&(o=.5,r=.5),o=n.size*(o-.5)*2,r=n.size*(r-.5)*2),i&&f?s.css({transform:`translateX(${o}px) translateY(${r}px) translateZ(0)`}):s.css({transition:`transform ${i?2:n.speed}s cubic-bezier(.22, .63, .6, .88)`,transform:`translateX(${o}px) translateY(${r}px) translateZ(0)`}))})),f=0}(t,e,i)}));function k(t){clearTimeout(m),t?function(){const t=a(".nk-awb .nk-awb-wrap.nk-awb-mouse-parallax").children(".nk-awb-inner");t.length&&(p?p=t:(p=t,o&&window.DeviceOrientationEvent?i.on("deviceorientation",(t=>{v(t.originalEvent.gamma/90,t.originalEvent.beta/180,!0)})):i.on("mousemove",(t=>{v(t.clientX,t.clientY)})))),p&&p.each((function(){const t=a(this),e=t.parent(),i=parseFloat(e.attr("data-awb-mouse-parallax-size"))||30,n=parseFloat(e.attr("data-awb-mouse-parallax-speed"))||1e4;t.data("awb-mouse-data",{is_in_viewport:u(e)?e.is(":visible"):0,rect:e[0].getBoundingClientRect(),size:i,speed:n/1e3}),t.css({left:-i,right:-i,top:-i,bottom:-i})}))}():m=setTimeout(m,100)}function x(){a(".nk-awb:not(.wpb_column)").children('.nk-awb-wrap[data-awb-stretch="true"]').each((function(){const t=a(this),e=this.getBoundingClientRect(),{left:i}=e,n=window.innerWidth-e.right,o=parseFloat(t.css("margin-left")||0),r=parseFloat(t.css("margin-right")||0);t.css({"margin-left":o-i,"margin-right":r-n})})),a(".nk-awb.wpb_column").children('.nk-awb-wrap[data-awb-stretch="true"]').each((function(){const t=a(this),e=t.closest(".vc_row"),i=t.closest(".wpb_column"),n=this.getBoundingClientRect(),o=e[0].getBoundingClientRect(),r=i[0].getBoundingClientRect(),s=n.left,l=window.innerWidth-n.right,d=o.left+(parseFloat(e.css("padding-left"))||0),c=window.innerWidth-o.right+(parseFloat(e.css("padding-right"))||0),w=r.left,h=window.innerWidth-r.right,g={"margin-left":0,"margin-right":0};if(Math.round(d)===Math.round(w)){const e=parseFloat(t.css("margin-left")||0);g["margin-left"]=e-s}if(Math.round(c)===Math.round(h)){const e=parseFloat(t.css("margin-right")||0);g["margin-right"]=e-l}t.css(g)})),e.settings&&e.settings.full_width_fallback&&a(".nk-awb.alignfull").each((function(){const t=a(this).children(".nk-awb-wrap");if(!t[0])return;const e=t[0].getBoundingClientRect(),{left:i}=e,n=window.innerWidth-e.right,{bottom:o}=e,r=parseFloat(t.css("margin-left")||0),s=parseFloat(t.css("margin-right")||0),l=parseFloat(t.css("margin-bottom")||0);let d=r-i,c=s-n,w="";if(t.closest(".ghostkit-col").length){const e=t.closest(".ghostkit-grid"),a=t.closest(".ghostkit-col"),h=e[0].getBoundingClientRect(),g=a[0].getBoundingClientRect(),b=h.left,u=window.innerWidth-h.right,m=g.left,p=window.innerWidth-g.right,f=g.bottom;Math.round(b)!==Math.round(m)&&(d=m-i+r),Math.round(u)!==Math.round(p)&&(c=p-n+s),w=l-(f-o)}t.css({"margin-left":d,"margin-right":c,"margin-bottom":w})}))}function y(){a(".nk-awb .nk-awb-inner img").each((function(){if(!a(this)[0])return;const t=window.getComputedStyle(this,null);if(t&&t.objectFit&&"cover"===t.objectFit){const t=parseInt(this.getAttribute("height"),10),e=parseInt(this.getAttribute("width"),10);if(t){let a=this.clientWidth;e/t>this.clientWidth/this.clientHeight&&(a=parseInt(this.clientHeight*e/t,10)),this.setAttribute("sizes",`${a}px`)}}}))}i.on("resize scroll orientationchange load",k),setInterval(k,3e3);let _="";n.on("jetpack-lazy-loaded-image",".jarallax-img",(t=>{const e=a(t.target).parent().parent();e[0].jarallax&&e[0].jarallax.image&&e[0].jarallax.image.$item&&(e[0].jarallax.image.$item=t.target)})),window.nkAwbInit=function(){const t=a(".nk-awb .nk-awb-wrap[data-awb-mouse-parallax-size]:not(.nk-awb-mouse-parallax)");t.length&&(t.addClass("nk-awb-mouse-parallax"),k(!0)),a(".nk-awb-after-vc_row").each((function(){const t=a(this);let e=t.prev(".vc_clearfix");e=!!e.length&&e;const i=(e||t).prev(".vc_row:not(.nk-awb)");if(i.length){const e=t.children(".nk-awb-wrap");i.is("[data-vc-full-width=true]")&&e.removeAttr("data-awb-stretch"),i.addClass("nk-awb"),i.append(e)}t.remove()})),a(".nk-awb-after-vc_column").each((function(){const t=a(this),e=t.prev(".wpb_column:not(.nk-awb)"),i=e.closest(".vc_row");if(e.length){const a=t.children(".nk-awb-wrap");i.is("[data-vc-stretch-content=true]")&&a.removeAttr("data-awb-stretch"),e.addClass("nk-awb"),e.append(a)}t.remove()})),function(){if(window.GHOSTKIT)return;const t=a(".nk-awb[data-ghostkit-styles]");if(t.length){t.each((function(){_+=a(this).attr("data-ghostkit-styles"),a(this).removeAttr("data-ghostkit-styles")}));let e=a("#ghostkit-awb-custom-css-inline-css");e.length||(e=a('